<?php
/**
 *@作者:MissZhang
 *@邮箱:<787727147@qq.com>
 *@创建时间:2022/10/9 09:55
 *@说明:运费模板地区
 */

namespace app\common\model;


use think\Model;

class ShippingArea extends Model
{
    protected $pk = "id";
    // 定义时间戳字段名
    protected $createTime = 'add_time';
    //修改format类型
    protected $dateFormat = "Y-m-d H:i:s";
    protected $type = [
//        'area'      =>      'serialize',
    ];
    public function getPkAttr() {
        return $this->pk;
    }
    public function shipping(){
        return $this->hasOne(Shipping::class, 'id','sid');
    }
}
